<template>
    <view class="content" v-if="data && data.vice_data && data.vice_data.content">
        <u-parse :html="data.vice_data.content"></u-parse>
    </view>
</template>

<script>
    export default {
    	data() {
    		return {
    			data: {},
    		}
    	},
    	onLoad() {
    		this.getContent();
    	},
    	methods: {
    		getContent() {
    			this.$ajax('contentsInfo', {
    			    userToken: this.$getSync('userToken'),
    				id: 2, //2-平台介绍 10-用户使用条款 20-充值说明 21-消费说明
    			}).then(ret => {
    				if (ret.status == 0) {
    					this.data = ret.data
    				} else {
    					this.$toast(ret.message);
    				}
    			});
    		},
    	}
    }
</script>

<style lang="scss">
    page{
        background-color: #fff;
        border-top: 2rpx solid #e6e6e6;
    }
    .content{
        padding: 20rpx;
    }

</style>
